"""
@name : 10-28 homework
@author : hj
@projectname: CJH
"""

import random

# 产生12个[0, 1]的int数值
data = [random.choice([0, 1]) for i in range(12)]
print("亮灯情况:", data)
# 产生1个 [1-12]之间的随机数
n = random.randint(1, 12)
print(f"打中了第{n}个球")
# 判断data的第n 为是否为0
if data[n - 1] == 0:
    print("你赢了")
else:
    print("你输了")

